package com.gee.spring.boot.rpf.client.calculator.factor.xuexin;

import com.gee.spring.boot.rpf.client.calculator.factor.AbstractClientCalculator;
import com.gee.spring.boot.rpf.client.xuexin.XueXinResponse;
import com.gee.spring.boot.rpf.common.constant.FactorConstant;
import org.springframework.stereotype.Component;

/**
 * desc:
 *
 * @author gee wrote on  2021-02-07 19:53:04
 */
@Component
public class EduGradeFactor extends AbstractClientCalculator<XueXinResponse> {
    @Override
    public Object process(XueXinResponse response, Object ...otherParam) throws Exception {
        return response.getEduGrade() == null ? FactorConstant.FACTOR_RESULT_STRING_PARA_IS_NULL
                : response.getEduGrade();
    }
}
